package com.github.caijh.mall.common.enums;

import com.github.caijh.framework.core.enums.IndexEnum;

public enum ProductStatusEnum implements IndexEnum {

    /**
     * 卖中
     */
    ON_SELLING(1),
    /**
     * 下架
     */
    NOT_SELLING(2),
    /**
     * 售完
     */
    SOLD_OUT(3),
    /**
     * 将售完
     */
    STOCK_WARNING(4),
    /**
     * 商品已删除
     */
    DELETED(5);

    private final int index;

    ProductStatusEnum(int index) {
        this.index = index;
    }

    @Override
    public int getIndex() {
        return this.index;
    }
}
